<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Global类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_global.html">Global</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_global-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Global类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a125337c829c7837b23d256a56c116a20"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#a125337c829c7837b23d256a56c116a20">tkInit</a> (int w, int h, <a class="el" href="enumawtk_1_1_app_type.html">AppType</a> app_type, String app_name, String app_root)</td></tr>
<tr class="separator:a125337c829c7837b23d256a56c116a20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80bf8ceae1cd1467365cdba2fdceed55"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#a80bf8ceae1cd1467365cdba2fdceed55">tkRun</a> ()</td></tr>
<tr class="separator:a80bf8ceae1cd1467365cdba2fdceed55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20cb43d2008ea2d16a3dca5f0ce318fa"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#a20cb43d2008ea2d16a3dca5f0ce318fa">quit</a> ()</td></tr>
<tr class="separator:a20cb43d2008ea2d16a3dca5f0ce318fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bd68e6d84dddc91134347bc8065889a"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#a9bd68e6d84dddc91134347bc8065889a">getPointerX</a> ()</td></tr>
<tr class="separator:a9bd68e6d84dddc91134347bc8065889a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a104f3c0f9c487465b81c006c4e1c9524"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#a104f3c0f9c487465b81c006c4e1c9524">getPointerY</a> ()</td></tr>
<tr class="separator:a104f3c0f9c487465b81c006c4e1c9524"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab51bdd3a58e3c89874e7c1537fe1c7a8"><td class="memItemLeft" align="right" valign="top">static boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_global.html#ab51bdd3a58e3c89874e7c1537fe1c7a8">isPointerPressed</a> ()</td></tr>
<tr class="separator:ab51bdd3a58e3c89874e7c1537fe1c7a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>TK全局对象。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a9bd68e6d84dddc91134347bc8065889a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bd68e6d84dddc91134347bc8065889a">&#9670;&nbsp;</a></span>getPointerX()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.Global.getPointerX </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针的X坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针的X坐标。 </dd></dl>

</div>
</div>
<a id="a104f3c0f9c487465b81c006c4e1c9524"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a104f3c0f9c487465b81c006c4e1c9524">&#9670;&nbsp;</a></span>getPointerY()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int awtk.Global.getPointerY </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针的Y坐标。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针的X坐标。 </dd></dl>

</div>
</div>
<a id="ab51bdd3a58e3c89874e7c1537fe1c7a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab51bdd3a58e3c89874e7c1537fe1c7a8">&#9670;&nbsp;</a></span>isPointerPressed()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static boolean awtk.Global.isPointerPressed </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取全局指针是否按下。</p>
<dl class="section return"><dt>返回</dt><dd>返回全局指针是否按下。 </dd></dl>

</div>
</div>
<a id="a20cb43d2008ea2d16a3dca5f0ce318fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20cb43d2008ea2d16a3dca5f0ce318fa">&#9670;&nbsp;</a></span>quit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Global.quit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>退出TK事件主循环。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a125337c829c7837b23d256a56c116a20"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a125337c829c7837b23d256a56c116a20">&#9670;&nbsp;</a></span>tkInit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Global.tkInit </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="enumawtk_1_1_app_type.html">AppType</a>&#160;</td>
          <td class="paramname"><em>app_type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>app_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>app_root</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>初始化TK。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>LCD宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>LCD高度。 </td></tr>
    <tr><td class="paramname">app_type</td><td>应用程序的类型。 </td></tr>
    <tr><td class="paramname">app_name</td><td>应用程序的名称(必须为常量字符串)。 </td></tr>
    <tr><td class="paramname">app_root</td><td>应用程序的根目录，用于定位资源文件(必须为常量字符串)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a80bf8ceae1cd1467365cdba2fdceed55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80bf8ceae1cd1467365cdba2fdceed55">&#9670;&nbsp;</a></span>tkRun()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Global.tkRun </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>进入TK事件主循环。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Global.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
